import request from '@/utils/request'

// 新增地点
export function addLocation(data) {
  return request({
    url: '/base/Location',
    method: 'post',
    data: data
  })
}

// 修改地点
export function updateLocation(data) {
  return request({
    url: '/base/Location',
    method: 'put',
    data: data
  })
}

// 删除地点
export function delLocation(locationId) {
  return request({
    url: '/base/Location/' + locationId,
    method: 'delete'
  })
}

// 导出地点
export function exportLocation(query) {
  return request({
    url: '/base/Location/export',
    method: 'get',
    params: query
  })
}
